package com.scmt.hmzd.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 优惠券用户关联信息
 * </p>
 *
 * @author ycy
 * @since 2023-03-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="HmCouponUser对象", description="优惠券用户关联信息")
public class HmCouponUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "优惠券用户ID")
    @TableId(value = "coupon_user_id", type = IdType.AUTO)
    private Long couponUserId;

    @ApiModelProperty(value = "优惠券ID")
    private Long couponId;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "领券时间")
    private Date receiveTime;

    @ApiModelProperty(value = "优惠券状态 0:失效 1:有效 2:使用过")
    private Integer status;

    @ApiModelProperty(value = "开始时间")
    private Date userStartTime;

    @ApiModelProperty(value = "结束时间")
    private Date userEndTime;

    @ApiModelProperty(value = "优惠券是否被删除")
    @TableLogic
    private Integer isDelete;
}
